$base-line-height: 24px;
$white: rgb(97, 90, 90);
$off-white: rgba($white, 0.2);
$pulse-duration: 750ms;
$mask_color: #fff;

@mixin position {
  position: fixed;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes pulse {
  50% {
    background: $white;
  }
}
#app-loading{
  transition: opacity 0.1s;
  &.hide{
    opacity: 0;
  }
}
.app-loading__mask{
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-color: $mask_color;
}
.app-loading__contain {
  @include position;
  // position: relative;
  width: ($base-line-height / 4);
  height: $base-line-height;
  background: $off-white;
  animation: pulse $pulse-duration infinite;
  animation-delay: ($pulse-duration / 3);
  &:before, &:after {
    content: '';
    position: absolute;
    display: block;
    height: ($base-line-height / 1.5);
    width: ($base-line-height / 4);
    background: $off-white;
    top: 50%;
    transform: translateY(-50%);
    animation: pulse $pulse-duration infinite;
  }
  &:before {
    left: -($base-line-height / 2);
  }
  &:after {
    left: ($base-line-height / 2);
    animation-delay: ($pulse-duration / 1.5);
  }
}
